﻿@model SportMeetingPlanner.Models.User
@{
    ViewBag.Title = "User Details";
}
<br />
<div class="section">
    <table class="listTable" cellspacing="0">
        <tr>
            <td class="leftColumn">
                Name
            </td>
            <td>@Html.DisplayFor(model => model.UserName)
            </td>
        </tr>
        <tr>
            <td class="leftColumn">
                First name
            </td>
            <td>@Html.DisplayFor(model => model.FirstName)
            </td>
        </tr>
        <tr>
            <td class="leftColumn">
                Last name
            </td>
            <td>@Html.DisplayFor(model => model.LastName)
            </td>
        </tr>
        <tr>
            <td class="leftColumn">
                Email
            </td>
            <td>@Html.DisplayFor(model => model.Email)
            </td>
        </tr>
        <tr>
            <td class="leftColumn">
                Tel Nr
            </td>
            <td>@Html.DisplayFor(model => model.TelephoneNumber)
            </td>
        </tr>
        <tr>
            <td class="leftColumn">
                Admin
            </td>
            <td>
                @Html.DisplayFor(model => model.IsAdmin)
            </td>
        </tr>
        <tr>
            <td>
                <br />
            </td>
            <td>
            </td>
        </tr>
        <tr onclick="DoNav('@Url.Content("~/UserManager/Edit?UserName=" + Model.UserName)');" class="link">
            <td class="leftColumn" colspan="2">
                Edit
            </td>
        </tr>
        <tr class="link">
            <td class="leftColumn" colspan="2">
                @Html.ActionLink("Delete", "Delete", new { UserName = Model.UserName })
            </td>
        </tr>
        <tr class="back">
            <td class="leftColumn" colspan="2">
                @Html.ActionLink("Back", "Index")
            </td>
        </tr>
    </table>
</div>
